<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"  %>
<%@taglib prefix="sd" uri="/struts-dojo-tags" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>区域管理</title>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="${pageContext.request.contextPath}/css/bg/main.css"
			type="text/css" rel=stylesheet />
		<sd:head/>
		<script type="text/javascript">
		/* <![CDATA[ */
			//选择事件
            function treeNodeSelected(arg) {
            	alert(arg.source.widgetId);
            	alert(arg.source.widgetName);
            }
            
            dojo.addOnLoad(function() {                
                var t = dojo.widget.byId('nodeId');
                
                var s = t.selector;                
                dojo.event.connect(s, 'select', 'treeNodeSelected');
            });
        /* ]]> */    
		</script>
	</head>
	<body>
		<!-- 显示树列表 -->
		
		<sd:tree rootNode="root" nodeIdProperty="id" nodeTitleProperty="name" childCollectionProperty="childrens"
		showRootGrid="true"  showGrid="true"  id="nodeId"
		expandIconSrcPlus="/style/images/tree/books_close.gif" expandIconSrcMinus="/style/images/tree/books_open.gif"> 
		</sd:tree>
	</body>
</html>
